/* eslint-disable */
import {
    axios
} from '@/utils/request';
const api = {
    sendVerificationCode: '/system/loginConfirm/sendVerificationCode', //验证码
    parkLogin:'/share-parking/parking/auth/parkLogin',//登陆
    parkRegister:'/share-parking/parking/auth/parkRegister',//注册

}
export default api
export function sendVerificationCode(parameter) {
    return axios({
        url: api.sendVerificationCode,
        data: parameter,
        method: 'Post'
    })
}


export function parkLogin(parameter) {
    return axios({
        url: api.parkLogin+'?loginName='+parameter.loginName+'&verificationType='+parameter.verificationType+'&verificationCode='+parameter.verificationCode ,
        method: 'Post'
    })
}

export function parkRegister(parameter) {
    return axios({
        url: api.parkRegister,
        data: parameter,
        method: 'Post'
    })
}
